package com.xoms.front.persist.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.xoms.front.model.ProStockBean;
import com.xoms.front.persist.dao.ProStockDao;

@Repository
public class ProStockImpl extends BaseImpl implements ProStockDao {

	final String NAME_SPACE = NAME_SPACE_HEADER + ".ProStockMapper";

	@Override
	public int updateBatch(List<ProStockBean> list) {
		if (list == null || list.isEmpty()) {
			return 1;
		}
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("list", list);
		return sqlSessionTemplate.update(NAME_SPACE + ".updateBatch", params);
	}

}
